package org.iter.demo;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.interceptor.ServletRequestAware;

import com.opensymphony.xwork2.ActionSupport;

public class TwoMethod extends ActionSupport implements ServletRequestAware {
	
	private String message ;
	private HttpServletRequest request ;

	public void setServletRequest(HttpServletRequest arg0) {
		this.request = arg0 ;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String OneMethod() throws Exception{
		request.setAttribute("reslut", "This is OneMethod");
		return "One" ;
	}
	
	public String AnOtherMethod() throws Exception {
		request.setAttribute("reslut", "This is AnOtherMethod");
		return "AnOther" ;
	}
	
}
